package com.aatrox.bhsypro.service.impl;

import com.aatrox.bhsypro.dao.BhSyGosDao;
import com.aatrox.bhsypro.entity.BhSyGos;
import com.aatrox.bhsypro.service.BhSyGosService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BhSyGosServiceImpl implements BhSyGosService {
    @Autowired
    BhSyGosDao bgd;

    @Override
    public BhSyGos selIsGos(int uid) {
        BhSyGos bg = bgd.selIsGos(uid);
        return bg;
    }

    @Override
    public void insertNewGos(int uid) {
        bgd.insertNewGos(uid);
    }

    @Override
    public List<BhSyGos> selAllGos() {
        List list = bgd.selAllGos();
        return list;
    }

    @Override
    public void updateBeGos(int uid) {
        bgd.updateBeGos(uid);
    }

    @Override
    public BhSyGos selGosForUid(int uid) {
        return bgd.selGosForUid(uid);
    }
}
